package com.flnet.foxwash.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.flnet.foxwash.mapper.WOrderMapper;
import com.flnet.foxwash.domain.WOrder;
import com.flnet.foxwash.service.IWOrderService;
import com.flnet.common.support.Convert;

/**
 * 订单 服务层实现
 * 
 * @author flnet
 * @date 2019-03-20
 */
@Service
public class WOrderServiceImpl implements IWOrderService 
{
	@Autowired
	private WOrderMapper wOrderMapper;

	/**
     * 查询订单信息
     * 
     * @param orderId 订单ID
     * @return 订单信息
     */
    @Override
	public WOrder selectWOrderById(Long orderId)
	{
	    return wOrderMapper.selectWOrderById(orderId);
	}
	
	/**
     * 查询订单列表
     * 
     * @param wOrder 订单信息
     * @return 订单集合
     */
	@Override
	public List<WOrder> selectWOrderList(WOrder wOrder)
	{
	    return wOrderMapper.selectWOrderList(wOrder);
	}
	
    /**
     * 新增订单
     * 
     * @param wOrder 订单信息
     * @return 结果
     */
	@Override
	public int insertWOrder(WOrder wOrder)
	{
	    return wOrderMapper.insertWOrder(wOrder);
	}
	
	/**
     * 修改订单
     * 
     * @param wOrder 订单信息
     * @return 结果
     */
	@Override
	public int updateWOrder(WOrder wOrder)
	{
	    return wOrderMapper.updateWOrder(wOrder);
	}

	/**
     * 删除订单对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteWOrderByIds(String ids)
	{
		return wOrderMapper.deleteWOrderByIds(Convert.toStrArray(ids));
	}
	
}
